﻿using UnityEngine;
using System.Collections;

public class Movement : MonoBehaviour {


    public Vector2 damping = new Vector2(0.75f, 0.75f);

    public Vector2 movementInput;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {


	}

	public void MoveBy(Vector2 MovementForce)
	{
		rigidbody2D.AddForce(MovementForce * Time.deltaTime);
		rigidbody2D.velocity = new Vector2(rigidbody2D.velocity.x * Util.DampingCoefficient(damping.x), rigidbody2D.velocity.y * Util.DampingCoefficient(damping.y));
	}
}
